﻿using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace TgaScanner
{
    internal class ObservableObject : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;

        protected void RaisePropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

        private int sampleProperty;

        public int SampleProperty
        {
            get { return sampleProperty; }
            set
            {
                sampleProperty = value;
                RaisePropertyChanged(nameof(SampleProperty));
            }
        }
    }
}
